﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Obligatorio.DataAccess;

/// <summary>
/// Summary description for MarketingPresenter
/// </summary>
public class MarketingPresenter
{
    IMarketingView _view;

	public MarketingPresenter(IMarketingView view)
	{
        this._view = view;
	}

    public void GetBranches()
    {
        using (var data = new ObligatorioDotNetEntities())
        {
            this._view.Branches = data.Branches.ToList();
        }
    }

    public void GetProviders()
    {
        using (var data = new ObligatorioDotNetEntities())
        {
            this._view.Providers = data.Providers.ToList();
        }
    }
}